Skip to content

Conversation

@ldemesla
Copy link
Contributor

Summary

Set default DB_URL to the pgvector connection string during initialization, eliminating the need for users to manually enter the database URL.

Changes

  • Modified init_cli_config() in init.py to default DB_URL to postgresql://postgres:postgres@localhost:54320/codeindexerdb
  • This matches the pgvector container that gets automatically set up during the init process
  • Users can still override by entering a custom value when prompted, but now have a working default

Problem Solved

Previously, users had to manually enter the database URL during deadend init, even though the pgvector container was automatically set up with a known connection string. This was confusing and led to potential connection errors if users left it blank or entered incorrect values.

Test plan

  • Run deadend init and verify DB_URL defaults to pgvector connection string
  • Press Enter to accept default and verify configuration is saved correctly
  • Code formatted with black and isort
  • Verify the application starts and connects to the database successfully

🤖 Generated with Claude Code

Users no longer need to manually enter the database URL during initialization.
The DB_URL now defaults to the pgvector container connection string
(postgresql://postgres:postgres@localhost:54320/codeindexerdb) that gets
automatically set up during the init process.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant